package com.Iron.OtherBean;

import com.Iron.Service.Impl.UserServiceImpl;
import com.Iron.Service.UserService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;


//@Component
public class FactoryBean {

//    @Bean("getService")
    public static UserService getBean(@Value("张三") String name){
        return new UserServiceImpl();
    }
}
